package fun.easycode.webterminal.service.cmd;

import fun.easycode.webterminal.common.contract.IValidate;
import fun.easycode.webterminal.dao.MachineType;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class MachineSaveCmd implements IValidate {
    private String id;
    @NotEmpty
    private String groupId;
    @NotEmpty
    private String name;
    @NotEmpty
    private String ip;
    @NotNull
    private Integer port;
    @NotEmpty
    private String username;
    private String password;

    @NotNull
    private MachineType type;

    private String publicKey;

    @NotNull
    private Boolean isJump;
    private String jumpMachineId;

}
